home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 August
/
CHIP Turkiye Ağustos 2001.iso
/
prog
/
agustos
/
08
/
setup.exe
/
Favorite.hta
< prev
next >
Wrap
Text File
|
2001-06-19
|
3KB
|
105 lines
<html>
<head>
<title>Favorites to HTML</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<HTA:APPLICATION ID="oMyApp"
APPLICATIONNAME="Favorites to HTML"
BORDER="yes"
CAPTION="yes"
SCROLL="no"
ICON="Favorite.ico"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes"
SYSMENU="yes"
INNERBORDER="no"
CONTEXTMENU = "no"
/>
<script language="javascript">
resizeTo (460,240);
function doSave() {
if (infile.value=="") { alert("Please enter your Favorites location."); return;}
else if (outfile.value=="") { alert("Please select an output file."); return;}
var filein = infile.value;
var fileout= outfile.value;
try {
favorite.save( filein, fileout );
alert("Favorites saved to " + fileout);
} catch (e) { alert(e.description); }
}
function getFav() {
ver.innerText = "version: " + favorite.Version;
var wshShell = new ActiveXObject("WScript.Shell");
try {
infile.value = wshShell.SpecialFolders("Favorites");
outfile.value= wshShell.SpecialFolders("MyDocuments") + "\\Favorite.htm";
} catch (e) { alert(e.description); }
wshShell = null;
favorite.setPath(iconpath.value);
}
</script>
<script language="javascript" for="iconpath" event="onchange">
try {
favorite.setPath(this.value);
} catch (e) { alert(e.description); }
</script>
<script language="javascript" for="foldersfirst" event="onchange">
favorite.setOrder(this.checked);
</script>
<style type="text/css">
<!--
body { font-family: Verdana, Arial, Helvetica, sans-serif; background-color: buttonface; font-size: 8pt;}
td { font-size: 8pt}
h2 { font-size: 12pt}
.small { font-size: x-small}
-->
</style>
</head>
<body bgcolor="#FFFFFF" onload="getFav();">
<h2>Favorites to HTML</h2>
<object code="Favorite.class" id="favorite" vspace="0" hspace="0" width="100%" height="2">
</object>
<table border="0" cellspacing="2" cellpadding="2">
<tr>
<td>Favorites path:</td>
<td>
<input type="text" name="infile" size="35">
</td>
<td> </td>
</tr>
<tr>
<td>Save Path: </td>
<td>
<input type="text" name="outfile" size="35">
</td>
<td> </td>
</tr>
<tr>
<td>Image path:</td>
<td>
<input type="text" name="iconpath" value="icons\" size="35">
</td>
<td> </td>
</tr>
<tr>
<td nowrap>List folders first?</td>
<td>
<input type="checkbox" name="foldersfirst" value="checkbox">
</td>
<td> </td>
</tr>
<tr>
<td>
<div id="ver">version: 1.80</div>
</td>
<td><button name="saveit" onclick="doSave();">Save</button></td>
<td><button name="exit" onclick="window.close();"> Exit </button></td>
</tr>
</table>
</body>
</html>